package com.itheima.config;

import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;

public class ServletConfig extends AbstractAnnotationConfigDispatcherServletInitializer {
    // TODO 4.1 设置spring核心配置
    protected Class<?>[] getRootConfigClasses() {
        return new Class[]{SpringConfig.class};
    }
    // TODO 4.2 设置springmvc核心配置
    protected Class<?>[] getServletConfigClasses() {
        return new Class[]{SpringMvcConfig.class};
    }
    // TODO 4.3 设置springmvc映射路径
    protected String[] getServletMappings() {
        return new String[]{"/"};
    }
}
